<?php
class CMRPageUserDetails extends CMRPage
{
protected function getContentsDiv()
	{
		$html = "<div id=\"content\">\n";
		$html .= "<h1>User Details</h1>";

		$sectionsPanel = new SectionsPanel('');
		$html .= $sectionsPanel->getHTML();

		$shortcutPanel = new ShortcutPanel('');
		$html .= $shortcutPanel->getHTML();
		
		
//		echo $this->getSubAction();

		$sql = "SELECT * from Users as U INNER JOIN UserGroupMembers as UGM on U.UserID=UGM.UserID INNER JOIN UserGroups as UG ON UG.UserGroupID=UGM.UserGroupID ORDER BY U.LongName";
		$this->Database->ExecuteSQL($sql);
		$html .= "<div id=\"usersessionlist\"><table>\n";
		while($row=$this->Database->getRow())
		{
			$html .= "<tr>";
			$html .= "<td>".$row['LongName']."</td>";
			$html .= "<td>".$row['ShortName']."</td>";
			$html .= "<td>".$row['Password']."</td>";
			$html .= "<td>".$row['Email']."</td>";
			$html .= "<td>".$row['GroupName']."</td>";
			$html .= "</tr>\n";
		}
		$html .= "</table></div>\n";
		
	
		$html .= "</div>\n";
		return $html;
	}
}
				
